<div class="options index">
	<h2><?php echo __('Options'); ?></h2>
	<div class="table-toolbar">
						<div class="btn-group">
							<a href="<?php
									echo $this->Html->url(array('controller'	=>	'options', 'action'	=>	'admin_add'), true);
									?>" id="sample_editable_1_new" class="btn green">
									Add New <i class="fa fa-plus"></i>
							</a>
						</div>
					</div>
	<table cellpadding="0" cellspacing="0" class="table table-striped table-hover table-bordered dataTable" id="sample_editable_1">
		<thead>
			<tr>
					<th><?php echo $this->Paginator->sort('name', 'Name'); ?></th>
					<th><?php echo $this->Paginator->sort('value'); ?></th>
					<th class="actions"><?php echo __('Edit'); ?></th>
					<th class="actions"><?php echo __('Delete'); ?></th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($options as $option): ?>
			<tr>
				<td><?php echo h($option['Option']['name']); ?>&nbsp;</td>
				<td><?php echo h($option['Option']['value']); ?>&nbsp;</td>
				<td class="actions">
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $option['Option']['id'])); ?>
				</td>
				<td class="actions">
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $option['Option']['id']), null, __('Are you sure you want to delete # %s?', $option['Option']['id'])); ?>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
